import request from '@/utils/request'
import defaultSettings from '@/settings'


//大额汇总对账--主页查询
export const summaryReconciliationQuery = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/SummaryReconciliationQuery/search`,
}

// 大额汇总对账--明细对账申请
export function detailReconApply(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/SummaryReconciliationQuery/detailReconApply`,
        method: 'post',
        data,
    })
}

// 大额汇总对账--汇总对账申请
export function summaryReconApply(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/SummaryReconciliationQuery/summaryReconApply`,
        method: 'post',
        data,
    })
}

// 大额汇总对账--手工对账
export function handRecon(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/SummaryReconciliationQuery/handRecon`,
        method: 'post',
        data,
    })
}

//小额汇总对账--主页查询
export const bepsSummaryReconciliationQuery = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/BepsSummaryReconciliationQuery/search`,
}

// 小额汇总对账--明细对账申请
export function detailReconApplyBeps(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/BepsSummaryReconciliationQuery/detailReconApply`,
        method: 'post',
        data,
    })
}

// 小额汇总对账--汇总对账申请
export function bepsSummaryReconApply(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/BepsSummaryReconciliationQuery/bepsSummaryReconApply`,
        method: 'post',
        data,
    })
}

// 小额汇总对账--手工对账
export function handReconBeps(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsReconciliationQuery/BepsSummaryReconciliationQuery/handRecon`,
        method: 'post',
        data,
    })
}


//大额明细对账--主页查询
export const detailReconciliationQuery = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationQuery/search`,
}

// 大额明细对账--明细对账详情
export function detail(params) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationQuery/detail`,
        method: 'get',
        params,
    })
}

// 大额明细对账--查看原交易详情
export function queryOriTxn(params) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationQuery/queryOriTxn`,
        method: 'get',
        params,
    })
}

// 大额明细对账--手工校对
export function manualCheck(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationQuery/manualCheck`,
        method: 'post',
        data,
    })
}

// 大额明细对账--手工对账
export function manualReconciliation(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationQuery/ManualReconciliation`,
        method: 'post',
        data,
    })
}

//小额明细对账--主页查询
export const detailReconciliationBepsQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationBepsQuery/search`,
}

// 小额明细对账--明细对账详情
export function detailBeps(params) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationBepsQuery/detail`,
      method: 'get',
      params,
  })
}
// 小额明细对账--查看原交易
export function queryOriTxnBeps(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationBepsQuery/queryListOriTxn`,
    method: 'get',
    params,
  })
}
//小额明细对账--原交易明细table
export const bepsOriDetailQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationBepsQuery/queryListOritxnTable`,
}


// 小额明细对账--查看原交易明细table明细记录
export function queryOriTxnDetail(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationBepsQuery/queryOriTxn`,
    method: 'get',
    params,
  })
}

// 小额明细对账--手工对账
export function manualRecon(data) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationBepsQuery/ManualReconciliation`,
      method: 'post',
      data,
  })
}

// 小额明细对账--手工校对
export function manualCheckBeps(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsDetailReconciliationQuery/DetailReconciliationBepsQuery/manualCheck`,
    method: 'post',
    data,
  })
}
